package com.bjtu.ptsite.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

/**
 *
 * @author Zehao Wang, Junjie Zhang, Yutao Wei
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class InviteCode {
    private String code;
    private int maxUses;
    private int remainingUses;
    /**
     *
     * 失效时间
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expiryTime;
    /**
     *
     * 创建者的id
     *
     */
    private int createdBy;
}
